﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Public.InfoProfile" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<%if (userInfo.MemberNo == ""){%>
				<div style="padding:50px; text-align:center">
					<div class="Black22B"><%=GetText("PB002")%></div>
				</div>
				<%}else{ %>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%if(userInfo.Online){%><img src='/Images/online.gif' title= '<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%}else{ %><img src='/Images/offline.gif' title='<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%} %>&nbsp;<%=userInfo.Nickname%></h1>
							</div>
							<div class="profile_basicinfo" style="position:relative">
								<div class="basicinfo_av">
									<div><a href="#"><img src='<%=(userInfo.Avatar==""?"/Images/no_pic.gif":userInfo.Avatar)%>' width="150" height="150" border="0" /></a></div>
									<div style='display: <%=(userInfo.MemberNo==Page.User.Identity.Name)?"":"none"%>'><span class="edit_text">[ <img src="/Images/icon_common_edit.gif" align="absmiddle" /> <a href="/my/profile/myphoto.htm"><%=GetText("C0053")%></a> ]</span></div>
								</div>
								<div class="basicinfo_lan">
									<p><span class="black18"><%=GetText("C0004")%>: </span><a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%></a><em>(<%=GetText("C0023") %>)</em><% if(userInfo.MotherTongue2.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue2)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue2Level)%></em><%}%><% if(userInfo.MotherTongue3.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue3)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue3Level)%></em><%}%><% if(userInfo.MotherTongue4.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue4)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue4Level)%></em><%} %>						</p>
									<p><span class="black18"><%=GetText("C0006")%>: </span><%if (userInfo.TargetLanguage.Trim() != ""){ %><a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguageLevel)%><%} %><% if(userInfo.TargetLanguage2.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage2)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage2Level)%><%}%><% if(userInfo.TargetLanguage3.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage3)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage3Level)%><%}%><% if(userInfo.TargetLanguage4.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage4)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage4Level)%><%} %></p>
									<p class="grey11"><%=userInfo.IsShowBod && userInfo.Age!=""? userInfo.Age + ", " : ""%><%=userInfo.Gender!=""?GetGenderText(userInfo.Gender)+", ":""%><%=GetText("C0102",new string[]{(userInfo.Hometown.Trim()+" ")+(GetCountryText(userInfo.Nationality))})%><%if (userInfo.Country != ""){ %>, living in <% if (userInfo.City.Trim() != ""){%><%=(userInfo.City.Trim() + " ")%><%}%><%=GetCountryText(userInfo.Country)%><%} %></p>
									<div><%=userInfo.Avatar_title == "" ? "" : "<div class='thoughtbox'><div><div><div><div>" + userInfo.Avatar_title + "</div></div></div></div></div>"%></div>
								</div>
								<div class="clear"></div>
							</div>
							<%if(mymemberno!=userInfo.MemberNo) {%>
							<div class="submenuN_button" style="right:0px; top:30px">
								<div class="mbasicinfo_op">
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_add.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
											<%if (UserRelation==0){%><a href="#" id="KKK" title="<%=GetText("C0078")%>" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"$AddFriends$('"+userInfo.MemberNo+"','KKK')\"":"onclick=\"NotAffirm()\""%> ><%=GetText("C0078")%></a><%}else{ %><span id="addToFriends" style="color:#ccc" title='<%=GetText("PB005",new string[]{userInfo.Nickname})%>'><%=GetText("C0078")%></span><%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_common_mailbox.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno==""){ %><a href="#" title="<%=GetText("C0079")%>" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0079")%></a><%}else if ((userInfo.WhoMsg == "0" || userInfo.WhoMsg == "1" || (userInfo.WhoMsg == "2" && UserRelation == 1)) && mymemberno!=userInfo.MemberNo){%><a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"$Getmail$('"+userInfo.MemberNo+"')\"":"onclick=\"NotAffirm()\""%>  title="<%=GetText("C0079")%>"><%=GetText("C0079")%></a><%}else{ %><span id="Span3" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0079")%></span>
										<%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_chat.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno==""){ %><a href="#" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0080")%></a><%}else if ((userInfo.WhoChatMe == "0" || userInfo.WhoChatMe == "1" || (userInfo.WhoChatMe == "2" && UserRelation == 1)) && mymemberno!=userInfo.MemberNo){%><a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"javascript: up_launchWM( '"+Page.User.Identity.Name.TrimStart('T').TrimStart('0')+"', '"+ userInfo.MemberNo.TrimStart('T').TrimStart('0')+"' ); return false;\"":"onclick=\"NotAffirm()\""%> ><%=GetText("C0080")%></a><%}else{ %><span id="Span1" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0080")%></span>
										<%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_report.gif" alt="Flag it" align="absmiddle" /></div>
										<div class="floatl Black12UU"><a href="#" title="<%=GetText("PB010")%>" onclick="$Feedback$()"><%=GetText("PB010")%></a></div>
										<div class="clear"></div>
									</div>
								</div>						
							</div>
							<%} %>
						</div>
					</div>
				</div>
				<div>
					<ul id="qa_nav" class="sort_sel">
						<li class="first" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>.htm">Profile</a></span></li>
						<li class="selATags" style="cursor:pointer"><span>Details</span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/activity.htm">Activity</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/blackboard.htm">Blackboard</a></span></li>
					</ul>
					<div class="clear"></div>							
					<!--latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001Left">
						<!--div class="right_layerA">
							<div class="layer_contentA">
							
								<h4><%=userInfo.Nickname%>’s Groups</h4>
								<div class="layer_contentA5">
									<asp:Repeater ID="rptgroup" runat="server">
									<ItemTemplate>
									<div class="pic50 floatl wid65"><%#Eval("ImgUrlPath").ToString() == "" ? "<a class='photo_75' href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "' title=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"><img src=\"/Images/No_pic.gif\" /></a>" : "<a class='photo_75' href='/groups/" + Eval("GID").ToString() + "' title=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"><img src=\"/UploadImages/Groups/" + Eval("GroupID").ToString() + "_2.jpg\"  /></a>"%></div>
										<div class="floatr wid120"><a href="/groups/<%#Eval("GID").ToString()%>" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) %>"><%#HttpUtility.HtmlEncode(Eval("Title").ToString())%></a></div>
										<div class="clear"></div>
									</ItemTemplate>
									</asp:Repeater>
								</div>
								<p align="right"><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/groups.htm">more <%=userInfo.Nickname%> Groups</a></p>
							</div>
						</div-->
					</div>
					<div class="Center9001Right">
						<div class="Center9001content">
							<div class="profile_area">
								<div class="profile_aboutme">
									<%if (userInfo.Introduction.Trim() == ""){%>
									<span class="grey12"><%=GetText("C0025")%></span>
									<%}else{%>
									<h3>About Me</h3>
									<p><%=HttpUtility.HtmlEncode(userInfo.Introduction).Replace("\n", "<br/>")%></p>
									<%}%>
									<div>
										<table width="100%" border="0" cellspacing="0" cellpadding="5">
									    <%=userInfo.IsShowBod && userInfo.Age!=""? "<tr><td class='profile_detail'>Age:</td><td class='profile_detailinfo'>"+userInfo.Age + "</td></tr>" : ""%>
									    <%=userInfo.Gender!=""?"<tr><td class='profile_detail'>"+GetText("C0011")+":</td><td class='profile_detailinfo'>"+GetGenderText(userInfo.Gender)+"</td></tr>":""%>
									    <tr><td class="profile_detail">I'm from:</td><td class="profile_detailinfo"><a href="<%=WWWHost %>/partner/from-<%=userInfo.Nationality %>.htm"><%=BLF.StaticData.GetCountryText(userInfo.Nationality)%></a></td></tr>
									    <%=userInfo.Country == "" ? "" : "<tr><td class='profile_detail'>Current Location:</td><td class='profile_detailinfo'>"+(userInfo.City==""?"":userInfo.City+", ")+"<a href='"+WWWHost+"/partner/in-"+userInfo.Country+".htm'>"+ BLF.StaticData.GetCountryText(userInfo.Country) + "</a></td></tr>"%>
									    <%if (userInfo.IsAgreeProfile == "0" || (userInfo.IsAgreeProfile == "1" && HttpContext.Current.User.Identity.Name != "") || (userInfo.IsAgreeProfile == "2" && arrlist[0].ToString() == "1")){ %>
										<tr><td class="profile_detail">Education level</td><td class="profile_detailinfo"><%if(userInfo.Education.Trim()==""){%><%=GetText("C0025")%><%}else{%><%=GetEducationText(userInfo.Education)%><%}%></td></tr>
										<tr><td class="profile_detail">Occupation</td><td class="profile_detailinfo"><%if (userInfo.Occupation.Trim() == ""){%><%}else{%><%if (userInfo.OccupationCat.Trim() == "1"){%><%=GetText("PB030", new string[] { GetOccupationText(userInfo.Occupation) })%><%}else if (userInfo.OccupationCat.Trim() == "1"){%><%=GetText("PB031", new string[] { GetOccupationText(userInfo.Occupation) })%><%}}%></td></tr>
										<tr><td class="profile_detail">Personal webpage</td><td class="profile_detailinfo"><%if (userInfo.PersonalWebpage.Trim() == ""){ %><%=GetText("C0025")%><%}else{%><a href='#' onclick="javascript:window.open('<%=userInfo.PersonalWebpage%>');" ><%=userInfo.PersonalWebpage%></a><%} %></td></tr>
										<tr><td class="profile_detail">Relationship status</td><td class="profile_detailinfo"><%if(userInfo.Marriage.Trim()==""){%><%=GetText("C0025")%><br /><%}else{%><%=GetMarriageText(userInfo.Marriage)%><%}%></td></tr>
										<tr><td valign="top" class="profile_detail">Chat Interests</td>
										<td class="profile_detailinfo"><%if(userInfo.Favorite==0){%><%=GetText("C0025")%><br /><%}else{%>
										<span class="" style="display:<%=(userInfo.Favorite&1)==1?"":"none"%> "><a href="<%=WWWHost %>/partner/love-1.htm"><%=GetText("PB042")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&2)==2?"":"none"%> "><a href="<%=WWWHost %>/partner/love-2.htm"><%=GetText("PB043")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&4)==4?"":"none"%> "><a href="<%=WWWHost %>/partner/love-4.htm"><%=GetText("PB044")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&8)==8?"":"none"%> "><a href="<%=WWWHost %>/partner/love-8.htm"><%=GetText("PB045")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&16)==16?"":"none"%> "><a href="<%=WWWHost %>/partner/love-16.htm"><%=GetText("PB046")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&32)==32?"":"none"%> "><a href="<%=WWWHost %>/partner/love-32.htm"><%=GetText("PB047")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&64)==64?"":"none"%> "><a href="<%=WWWHost %>/partner/love-64.htm"><%=GetText("PB049")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&128)==128?"":"none"%> "><a href="<%=WWWHost %>/partner/love-128.htm"><%=GetText("PB048")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&256)==256?"":"none"%> "><a href="<%=WWWHost %>/partner/love-256.htm"><%=GetText("PB050")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&512)==512?"":"none"%> "><a href="<%=WWWHost %>/partner/love-512.htm"><%=GetText("PB051")%></a></span>&nbsp;&nbsp;<span style="display:<%=(userInfo.Favorite&1024)==1024?"":"none"%> "><a href="<%=WWWHost %>/partner/love-1024.htm"><%=GetText("C0087")%></a></span>
										<%} %></td></tr><%} %>
										</table>            
									</div>
								</div>
								<%--Topic--%>
								<!--div class="profile_aboutme">
								   <h4>Learning Information</h4>
								   Language learning:  <%=userInfo.TargetLanguage == "" ? "" : " <a href='" + WWWHost + "/partner/learn-" + userInfo.TargetLanguage + ".htm'>learn " + BLF.StaticData.GetLanguageText(userInfo.TargetLanguage) + "</a>"%><%=userInfo.TargetLanguage2 == "" ? "" : " <a href='" + WWWHost + "/partner/learn-" + userInfo.TargetLanguage2 + ".htm'>learn " + BLF.StaticData.GetLanguageText(userInfo.TargetLanguage2)+"</a>"%><%=userInfo.TargetLanguage3 == "" ? "" : " <a href='" + WWWHost + "/partner/learn-" + userInfo.TargetLanguage3 + ".htm'>learn " + BLF.StaticData.GetLanguageText(userInfo.TargetLanguage3)+"</a>"%><%=userInfo.TargetLanguage4 == "" ? "" : " <a href='" + WWWHost + "/partner/learn-" + userInfo.TargetLanguage4 + ".htm'>learn " + BLF.StaticData.GetLanguageText(userInfo.TargetLanguage4)+"</a>"%> 
								</div-->
								<div class="profile_aboutme">
									<h3><%=GetText("Time availability") %></h3>
										<%if (TimeAvaila != null &&TimeAvaila.Count>0) {%>
										<%=GetTimezoneText((Timezone != "" ? Timezone : TimeAvaila[0].Timezone))%>
										<br />
										<ul class="profile_data">
										<% int tle = TimeAvaila.Count; for (int i = 0; i < tle; i++){if (i == 0){%><li><div class="profile_nonetoday"><%=BLF.WWW_User.Users.User.GetWeek(TimeAvaila[i].Week)%></div><div class="profile_nonetodaytime"><%=TimeAvaila[i].FromTime%>-<%=TimeAvaila[i].ToTime%><%}else if (TimeAvaila[i].Week != TimeAvaila[i - 1].Week && i != tle - 1){ %></div></li>
										<li><div class="profile_nonetoday"><%=BLF.WWW_User.Users.User.GetWeek(TimeAvaila[i].Week)%></div><div class="profile_nonetodaytime"><%=TimeAvaila[i].FromTime%>-<%=TimeAvaila[i].ToTime%><%}else if (i == tle - 1){ %><%if (TimeAvaila[i].Week == TimeAvaila[i - 1].Week){%><br /><%=TimeAvaila[i].FromTime%>-<%=TimeAvaila[i].ToTime%></div></li><%}else { %></div></li>
										<li><div class="profile_nonetoday"><%=BLF.WWW_User.Users.User.GetWeek(TimeAvaila[i].Week)%></div><div class="profile_nonetodaytime"><%=TimeAvaila[i].FromTime%>-<%=TimeAvaila[i].ToTime%></div></li><%}} %><%else if (TimeAvaila[i].Week == TimeAvaila[i - 1].Week){%><br /><%=TimeAvaila[i].FromTime%>-<%=TimeAvaila[i].ToTime%><%} %>
										<%} %>
										</ul>
										<div class="clear"></div>
										<%} %>
								</div>
								<%if (userInfo.IsAgreeContInfo == "0" || (userInfo.IsAgreeContInfo == "1" && HttpContext.Current.User.Identity.Name != "") || (userInfo.IsAgreeContInfo == "2" && arrlist[0].ToString() == "1")){%>  
								<div class="profile_aboutme">
									<h4><%=userInfo.Nickname%>'s contact</h4>
									<%if (userInfo.IM1Account.Trim() == ""){%>
									<%}else{%>
									<a href="skype:<%=userInfo.IM1Account%>?call" onclick="return skypeCheck();"><img src="http://mystatus.skype.com/smallicon/<%=userInfo.IM1Account%>" border="0" align="absmiddle" /></a> Skype: <%=userInfo.IM1Account%><br />
									<%}%>
									<%if (userInfo.IM2Account.Trim() == ""){%>
									<%}else{%>
									<a href="msnim:chat?contact=<%=userInfo.IM2Account%>"><img src='/images/IMIcons/Msn_Offline.gif' border="0" align="absmiddle" /></a> MSN Messenger: <%=userInfo.IM2Account%><br />
									<%}%>
									<%if (userInfo.IM3Account.Trim() == ""){%>
									<%}else{%>
									<a href="http://edit.yahoo.com/config/send_webmesg?.target=<%=userInfo.IM3Account%>&amp;.src=pg"><img border="0" src="http://opi.yahoo.com/online?u=<%=userInfo.IM3Account%>&amp;m=g&amp;t=0&amp;l=cn" align="absmiddle" /></a> Yahoo Messenger: <%=userInfo.IM3Account%><br />
									<%}%>
									<%if (userInfo.IM4Account.Trim() == ""){%>
									<%}else{%>
									<img src='/images/IMIcons/aim_Offline.gif' border="0" align="absmiddle" /> AOL Instant Messenger: <%=userInfo.IM4Account%><br />
									<%}%>
									<%if (userInfo.IM5Account.Trim() == ""){%>
									<%}else{%>
									<img src="http://status.icq.com/online.gif?icq=<%=userInfo.IM5Account%>&img=5" align="absmiddle"> ICQ: <%=userInfo.IM5Account%><br />
									<%}%>
									<%if (userInfo.IM6Account.Trim() == ""){%>
									<%}else{%>
									<img src='/images/IMIcons/gtalk_Online.gif' border="0" align="absmiddle" /> Google Talk: <%=userInfo.IM6Account%>
									<%}%>
								</div>		
								<%} %>
								<!--div class="margin20">The main purposes of <%=HttpUtility.HtmlEncode(userInfo.Nickname)%> at italki are <a href="<%=WWWHost%>/partner/learn-<%=userInfo.TargetLanguage%>.htm">learn <%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%></a>  and <a href="<%=WWWHost%>/partner/speak-<%=userInfo.MotherTongue%>.htm">speak <%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%></a>, and it is called as language</div-->
								<!--div class="margin20">exchange:<a href="<%=WWWHost%>/partner/<%=(userInfo.TargetLanguage)%>-learn-<%=userInfo.MotherTongue%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%>-<%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%> exchange</a></div-->
							</div>						
                        </div>
                    </div>
					<div class="clear"></div>
		  		</div>
				<%} %>
	  		</div>
			<div id="body_right"></div>
			<div class="clear"></div>
  		</div>
		<div id="body_900F"></div>	
	</div>    
</div>